<div class="modal-header">
  <h3 class="modal-title">添加项目用户</h3>
</div>
<div class="modal-body user-detail">
  <form name="userForm" novalidate="novalidate">
    <div class="row">
      <p>用户名</p>
      <select ng-model="vm.userid" name="usertype" required>
          <option ng-repeat="user in vm.userData track by $index" value="{{user.userid}}">{{user.username}}</option>
      </select>
      <div ng-if="userForm.user_name.$invalid" ng-messages="userForm.user_name.$error">
        <label class="error-messages" ng-message="required"><i></i>不能为空</label>
        <label class="error-messages" ng-message="pattern"><i></i>由数字、字母、中横线组成，不能以中横线开头结尾</label>
      </div>
    </div>
  </form>
</div>
<div class="modal-footer" style="clear: both">
  <button class="btn btn-default-dark"  ng-click="vm.ok()" ng-disabled="userForm.$invalid">确认</button>
  <a class="btn btn-default-dark" ng-click="vm.cancel()">取消</a>
</div>